import { createRouter,createWebHashHistory} from 'vue-router'
import Login from '@/views/login/Login.vue'
import HomePage from '@/views/Home/index.vue'
import home from '@/views/HomePage/index.vue'
import usermanage from '@/views/usermanage/index.vue'
import singermanage from '@/views/singermanage/index.vue'
import listmanage from '@/views/listmanage/index.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      component:Login
    },
    {
      path:'/home',
      component:home,
      children:[
        {
          path:'/homepage',
          component:HomePage
        },
        {
          path:'/usermanage',
          component:usermanage
        },
        {
          path:'/singermanage',
          component:singermanage
        },
        {
          path:'/listmanage',
          component:listmanage
        }
      ]
    },
  ]
})

export default router
